/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.acme.superduperapp;

import com.codename1.ui.Toolbar;
import com.codename1.ui.Container;
import com.codename1.ui.Form;
import com.codename1.ui.Tabs;
import com.codename1.ui.plaf.UIManager;
import javafx.scene.transform.Translate;
/**
 * GUI builder created Form
 *
 * @author kros
 */
public class login_new extends Form {

    public login_new() {
        this(com.codename1.ui.util.Resources.getGlobalResources());       
    }
    
    public login_new(com.codename1.ui.util.Resources resourceObjectInstance) {
        initGuiBuilderComponents(resourceObjectInstance);
    }

//-- DON'T EDIT BELOW THIS LINE!!!
    protected com.codename1.ui.Label gui_Label_1 = new com.codename1.ui.Label();
    protected com.codename1.ui.Container gui_Container = new com.codename1.ui.Container(new com.codename1.ui.layouts.BoxLayout(com.codename1.ui.layouts.BoxLayout.Y_AXIS));
    protected com.codename1.ui.Container gui_Container_1 = new com.codename1.ui.Container(new com.codename1.ui.layouts.BorderLayout());
    protected com.codename1.ui.Label gui_Label_name = new com.codename1.ui.Label();
    protected com.codename1.ui.TextField gui_Text_Field_1 = new com.codename1.ui.TextField();
    protected com.codename1.ui.Container gui_Container_2 = new com.codename1.ui.Container(new com.codename1.ui.layouts.BorderLayout());
    protected com.codename1.ui.Label gui_Label_name_1 = new com.codename1.ui.Label();
    protected com.codename1.ui.TextField gui_Text_Field_1_1 = new com.codename1.ui.TextField();
    protected com.codename1.ui.Button gui_Button = new com.codename1.ui.Button();
    protected com.codename1.ui.Label gui_Label = new com.codename1.ui.Label();
    protected com.codename1.ui.Container gui_Grid_Layout = new com.codename1.ui.Container(new com.codename1.ui.layouts.GridLayout(1, 3));
    protected com.codename1.ui.Container gui_Container_3 = new com.codename1.ui.Container(new com.codename1.ui.layouts.BoxLayout(com.codename1.ui.layouts.BoxLayout.Y_AXIS));
    protected com.codename1.ui.Label gui_Label_4 = new com.codename1.ui.Label();
    protected com.codename1.ui.Label gui_Label_4_1 = new com.codename1.ui.Label();
    protected com.codename1.ui.Label gui_Label_3 = new com.codename1.ui.Label();
    protected com.codename1.ui.Container gui_Container_4 = new com.codename1.ui.Container(new com.codename1.ui.layouts.BoxLayout(com.codename1.ui.layouts.BoxLayout.Y_AXIS));
    protected com.codename1.ui.Label gui_Label_4_2 = new com.codename1.ui.Label();
    protected com.codename1.ui.Label gui_Label_4_3 = new com.codename1.ui.Label();
    protected com.codename1.ui.Label gui_Label_5 = new com.codename1.ui.Label();


// <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void guiBuilderBindComponentListeners() {
        EventCallbackClass callback = new EventCallbackClass();
        gui_Button.addActionListener(callback);
    }

    class EventCallbackClass implements com.codename1.ui.events.ActionListener, com.codename1.ui.events.DataChangedListener {
        private com.codename1.ui.Component cmp;
        public EventCallbackClass(com.codename1.ui.Component cmp) {
            this.cmp = cmp;
        }

        public EventCallbackClass() {
        }

        public void actionPerformed(com.codename1.ui.events.ActionEvent ev) {
            com.codename1.ui.Component sourceComponent = ev.getComponent();

            if(sourceComponent.getParent().getLeadParent() != null && (sourceComponent.getParent().getLeadParent() instanceof com.codename1.components.MultiButton || sourceComponent.getParent().getLeadParent() instanceof com.codename1.components.SpanButton)) {
                sourceComponent = sourceComponent.getParent().getLeadParent();
            }

            if(sourceComponent == gui_Button) {
                onButtonActionEvent(ev);
            }
        }

        public void dataChanged(int type, int index) {
        }
    }
    private void initGuiBuilderComponents(com.codename1.ui.util.Resources resourceObjectInstance) {
        guiBuilderBindComponentListeners();
        setLayout(new com.codename1.ui.layouts.BoxLayout(com.codename1.ui.layouts.BoxLayout.Y_AXIS));
        setInlineStylesTheme(resourceObjectInstance);
        setScrollVisible(true);
        setScrollableY(true);
                setInlineStylesTheme(resourceObjectInstance);
        setInlineAllStyles("bgColor:f3f3f3;");
        setTitle("\u767B\u5F55");
        setName("login_new");
        addComponent(gui_Label_1);
        addComponent(gui_Container);
                gui_Container.setInlineStylesTheme(resourceObjectInstance);
        gui_Container.setInlineAllStyles("bgColor:ffffff; transparency:255; margin:0.0mm 1.0mm 0.0mm 1.0mm;");
        gui_Container.setName("Container");
        gui_Container.addComponent(gui_Container_1);
                gui_Container_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_1.setName("Container_1");
        gui_Container_1.addComponent(com.codename1.ui.layouts.BorderLayout.WEST, gui_Label_name);
        gui_Container_1.addComponent(com.codename1.ui.layouts.BorderLayout.CENTER, gui_Text_Field_1);
        gui_Label_name.setText("\u624B\u673A\u53F7\u0020\u0020\u0020\u0020:");
                gui_Label_name.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_name.setInlineAllStyles("font:2.0mm;alignment:left;");
        gui_Label_name.setName("Label_name");
        gui_Text_Field_1.setText("\u8BF7\u8F93\u5165\u624B\u673A\u53F7");
                gui_Text_Field_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Text_Field_1.setInlineAllStyles("font:2.0mm; border:2.0px underline eeeeee; fgColor:999999;");
        gui_Text_Field_1.setName("Text_Field_1");
        gui_Container.addComponent(gui_Container_2);
                gui_Container_2.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_2.setName("Container_2");
        gui_Container_2.addComponent(com.codename1.ui.layouts.BorderLayout.WEST, gui_Label_name_1);
        gui_Container_2.addComponent(com.codename1.ui.layouts.BorderLayout.CENTER, gui_Text_Field_1_1);
        gui_Label_name_1.setText("\u767B\u5F55\u5BC6\u7801:");
                gui_Label_name_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_name_1.setInlineAllStyles("font:2.0mm;alignment:left;");
        gui_Label_name_1.setName("Label_name_1");
        gui_Text_Field_1_1.setText("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801");
                gui_Text_Field_1_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Text_Field_1_1.setInlineAllStyles("font:2.0mm; border:2.0px underline eeeeee;fgColor:999999;");
        gui_Text_Field_1_1.setName("Text_Field_1_1");
                gui_Container_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_1.setName("Container_1");
                gui_Container_2.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_2.setName("Container_2");
        addComponent(gui_Button);
        addComponent(gui_Label);
        addComponent(gui_Grid_Layout);
                gui_Grid_Layout.setInlineStylesTheme(resourceObjectInstance);
        gui_Grid_Layout.setInlineAllStyles(" margin:2.0mm inherit 5.0mm inherit;");
        gui_Grid_Layout.setName("Grid_Layout");
        gui_Grid_Layout.addComponent(gui_Container_3);
                gui_Container_3.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_3.setName("Container_3");
        gui_Container_3.addComponent(gui_Label_4);
        gui_Container_3.addComponent(gui_Label_4_1);
        gui_Label_4.setText("     ");
                gui_Label_4.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_4.setInlineAllStyles("margin:0.0mm 0.0mm 0.0mm 2.0mm; border:1.0px underline d2d2d2;");
        gui_Label_4.setName("Label_4");
        gui_Label_4_1.setText("     ");
                gui_Label_4_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_4_1.setName("Label_4_1");
        gui_Grid_Layout.addComponent(gui_Label_3);
        gui_Grid_Layout.addComponent(gui_Container_4);
                gui_Container_4.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_4.setName("Container_4");
        gui_Container_4.addComponent(gui_Label_4_2);
        gui_Container_4.addComponent(gui_Label_4_3);
        gui_Label_4_2.setText("     ");
                gui_Label_4_2.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_4_2.setInlineAllStyles("margin:0.0mm 2.0mm 0.0mm 0.0mm; border:1.0px underline d2d2d2;");
        gui_Label_4_2.setName("Label_4_2");
        gui_Label_4_3.setText("     ");
                gui_Label_4_3.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_4_3.setName("Label_4_3");
                gui_Container_3.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_3.setName("Container_3");
        gui_Label_3.setText("\u4F7F\u7528\u5176\u4ED6\u65B9\u5F0F\u767B\u5F55");
                gui_Label_3.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_3.setInlineAllStyles("font:2.0mm;alignment:center;");
        gui_Label_3.setName("Label_3");
                gui_Container_4.setInlineStylesTheme(resourceObjectInstance);
        gui_Container_4.setName("Container_4");
        addComponent(gui_Label_5);
                gui_Label_1.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_1.setInlineAllStyles("alignment:center; margin:5.0mm 0.0mm 5.0mm 0.0mm;");
        gui_Label_1.setName("Label_1");
        gui_Label_1.setIcon(resourceObjectInstance.getImage("logo.png 1"));
                gui_Container.setInlineStylesTheme(resourceObjectInstance);
        gui_Container.setInlineAllStyles("bgColor:ffffff; transparency:255; margin:0.0mm 1.0mm 0.0mm 1.0mm;");
        gui_Container.setName("Container");
        gui_Button.setText("\u767B\u0020\u0020\u0020\u0020\u5F55");
                gui_Button.setInlineStylesTheme(resourceObjectInstance);
        gui_Button.setName("Button");
        gui_Label.setText("\u5FD8\u8BB0\u5BC6\u7801?");
                gui_Label.setInlineStylesTheme(resourceObjectInstance);
        gui_Label.setInlineAllStyles("font:2mm;alignment:right;");
        gui_Label.setName("Label");
                gui_Grid_Layout.setInlineStylesTheme(resourceObjectInstance);
        gui_Grid_Layout.setInlineAllStyles(" margin:2.0mm inherit 5.0mm inherit;");
        gui_Grid_Layout.setName("Grid_Layout");
                gui_Label_5.setInlineStylesTheme(resourceObjectInstance);
        gui_Label_5.setInlineAllStyles("alignment:center;");
        gui_Label_5.setName("Label_5");
        gui_Label_5.setIcon(resourceObjectInstance.getImage("weixin.png"));
    }// </editor-fold>

//-- DON'T EDIT ABOVE THIS LINE!!!
    public void onText_FieldActionEvent(com.codename1.ui.events.ActionEvent ev) {
    }

  

    public void onButtonActionEvent(com.codename1.ui.events.ActionEvent ev) {
        
     
     
      new MyApplication().show_user();

//        System.out.println(ev);
//        this.removeAll();
        
//        new user().show();
        
//          new userCenter().hid();
//          this.remove();
//         this.replace(new login_new(), new user(), null);
       
//          new MyApplication().show_user();
        
//          this.replace(this.getContentPane(),new user(),null);
          
    }

}
